
@font-face {
  // font-family: FZLTHJW;
  // src: url('../../assets/font-family/FZLTHJW.ttf');
  font-family: HarmonyOS_Sans_SC_Regular;
  src: url('../../assets/font-family/HarmonyOS_Sans_SC_Regular.ttf');
}

html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: 'HarmonyOS_Sans_SC_Regular' !important;
  overflow-y: hidden;
  --font-size-s: 12px;
  --font-size: 14px;
  --font-size-l: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 20px;
  --font-size-xxxl: 24px;
  --font-size-xxxxl: 28px;
  --font-size-xxxxxl: 32px;
  font-size: var(--font-size);
}

.el-container {
  height: calc(100% - 53px);
}

.el-header {
  margin: 0 !important;
  padding: 0 !important;
  height: 53px !important;
  box-shadow: inset 0px -1px 0px 0px rgba(42, 48, 58, 0.1);
  // background-color: #232323;
  // color: #fff;
}

.min-css {
  min-height: 100%;
  background-color: #fff;
  padding: 20px 20px 0 20px;
  border-radius: 8px 8px 8px 8px;
}

.edit-btn {
  padding: 8px 0 18px 32px;
}

.head-title {
  padding-left: 12px;
}

.w-350 {
  width: 350px !important;
}

.w-700 {
  width: 700px !important;
}

.w-900 {
  width: 900px !important;
}

.w-BFB {
  width: 100%;
}

.pointer {
  cursor: pointer;
}

.text-align-r {
  text-align: right;
}

.p-20 {
  padding: 20px;
}

.mt-18 {
  margin-top: 18px;
}

.ml-12 {
  margin-left: 12px;
}

.ma-l-8 {
  margin-left: 8px;
}
.ma-r-15 {
  margin-right: 15px;
}

.custom-class {
  .el-message-box__btns {
    justify-content: center !important;
  }
}

.j-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.w-440 {
  width: 440px !important;
}

.el-select-v2__popper {
  font-size: 14px !important;
}

.user-text {
  position: relative;
  margin-right: 12px;
  padding: 10px 12px;
  max-width: 90%;
  background-color: #ffaa5b;
  color: #696969;
  border-radius: 4px;
  display: inline-block;
  text-align: left;
  font-size: 14px;
  font-font: 'Inter';
}

.user-text::before {
  content: '';
  position: absolute;
  border: 8px solid;
  border-color: transparent transparent transparent #ffaa5b;
  right: -16px;
  top: 8px;
}

.robot-text {
  position: relative;
  margin-left: 7px;
  padding: 10px 12px;
  max-width: 90%;
  background: #f2f2f2;
  color: #696969;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  font-font: 'Inter';
}

.robot-text::before {
  content: '';
  position: absolute;
  border: 8px solid;
  border-color: transparent #f2f2f2 transparent transparent;
  left: -16px;
  top: 8px;
}

.test-window-btn {
  color: #ff8e18;
  cursor: pointer;
  border-bottom: 1px solid;
}

.test-window-fixed {
  position: fixed;
  right: 45px;
  z-index: 1000;
}

.toolTip {
  max-width: 250px;
  max-height: 300px;
  cursor: pointer;
  word-wrap: break-word;
}

.link-scene-scrollbar {
  max-height: 220px;
}

.robot-switch {
  position: absolute;
  top: 50px;
}

.test-drawer {
  .el-drawer__header {
    border-bottom: 1px solid #e9e9e9 !important;
    margin-bottom: 0;
    padding-bottom: 46px;
  }

  .el-textarea__inner {
    box-shadow: none;
    resize: none;
  }

  .el-textarea__inner:hover {
    box-shadow: none;
  }

  .el-textarea__inner:focus {
    box-shadow: none;
  }

  .mrg-8 {
    margin-left: 8px;
  }

  .el-drawer__body {
    transition: scroll-behavior 0.3s;
    padding: 10px 24px 24px 24px;
  }

  .el-drawer__footer {
    padding-top: 0;

    .el-divider {
      margin: 0 0 12px 0;
    }
  }
}

.dialogue-drawer {
  .el-drawer__header {
    border-bottom: 1px solid #e9e9e9 !important;
    margin-bottom: 0;
    padding-bottom: 46px;
  }

  .el-textarea__inner {
    box-shadow: none;
    resize: none;
  }

  .el-textarea__inner:hover {
    box-shadow: none;
  }

  .el-textarea__inner:focus {
    box-shadow: none;
  }

  .mrg-8 {
    margin-left: 8px;
  }

  .el-drawer__body {
    transition: scroll-behavior 0.3s;
    padding: 10px 24px 24px 24px;
  }
  .el-drawer__footer {
    padding-top: 0;
    .el-divider {
      margin: 0 0 12px 0;
    }
  }
}
.actionBox {
  width: 120px;
  height: 100%;
  z-index: 4;
  border-radius: 4px 4px 4px 4px;
  background-color: #fff;
  display: flex;
  overflow-y: scroll;
  .el-collapse {
    --el-collapse-border-color: #fff;
  }
}

.actionBox::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.actionBox::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 整个滚动条 */
::-webkit-scrollbar {
  /* 对应纵向滚动条的宽度 */
  width: 7px;
  /* 对应横向滚动条的宽度 */
  height: 7px;
}

/* 滚动条上的滚动滑块 */
::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background-color: #fff;
  border-radius: 3px;
}

.footer-btn {
  display: flex;
  justify-content: space-between;
}

.robot-fold {
  margin-top: 10px;
  border-top: 1px dotted #cacaca;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.he-retract {
  max-height: 95px;
  overflow: hidden;
}

.he-expand {
  height: unset;
}

.tip {
  font-size: 12px;
  color: #ccc;
  margin-top: 12px;
  text-align: left;
}

.intention-he-retract {
  max-height: 110px;
  overflow: hidden;
}

.dialogue-box {
  img {
    width: 40px;
    height: 40px;
    vertical-align: top;
  }

  .user-box {
    text-align: left;
    margin-top: 14px;
    display: flex;
  }

  .robot-box {
    text-align: right;
    margin-top: 14px;
    display: flex;
    justify-content: right;
  }
}

.select-label-dialog {
  .el-dialog {
    min-height: 80%;
    background-color: #f2f2f2 !important;
  }
}

.textOverFlow {
  display: -webkit-box;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.not-directory-container {
  background-color: #fff;
  flex: 1;
  border-radius: 8px 8px 8px 8px;
  padding: 20px;
}

.tip-content {
  max-width: 200px;
  min-width: 120px;
  max-height: 400px;
  overflow-y: auto;
}
.card-data {
  .el-statistic__head {
    margin-bottom: 16px;
    font-size: 14px;
    color: #696969;
    font-width: 400;
  }
}

.box-card {
  .fs-12 {
    font-size: 12px;
  }
  .index-box {
    .card-name {
      font-weight: 400;
      color: #241f1f;
      font-size: 16px;
      display: flex;
      justify-content: space-between;
      font-family: HarmonyOS_Sans_SC_Regular, FZLanTingHeiS-R-GB-Regular, FZLanTingHeiS-R-GB;
    }
    .time {
      font-weight: 400;
      color: #cacaca;
    }
  }
}
.operating-index-type {
  width: 140px;
  margin-right: 8px;
  .el-input {
    height: 35px;
    font-size: 12px;
  }
}
.node-drawer {
  .el-drawer__header {
    border-bottom: 1px solid #e9e9e9 !important;
    padding-top: 5px;
    margin-bottom: 8px;
  }
}

.data-statistics-table {
  .content {
    .el-table__cell {
      padding: 8px 0 !important;
    }
  }
}

.scene-intention {
  .el-form-item__content {
    flex-wrap: nowrap;
  }
}
.desc-tip {
  font-size: 12px;
  padding-left: 42px;
  color: rgb(246, 112, 27);
}

.el-popper {
  max-width: 500px;
  &.el-select__popper {
    max-width: 100%;
  }
}
.model-test-codemirror {
  .CodeMirror-lines {
    line-height: 16px !important;
  }
}

.footer-btns {
  position: fixed;
  left: 190px;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 21 41 / 8%);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 190px);
  .cancel {
    margin-right: 22px;
  }
}

.box-mrg {
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.green {
  color: #22c898;
}
.item-source {
  .el-form-item__content {
    display: unset;
  }
}
.card-box {
  .el-card__body {
    padding: 0;
  }
  .el-divider--horizontal {
    margin: 16px 0;
  }
}
.single-line-ellipsis {
  white-space: nowrap; // 禁止换行
  overflow: hidden; // 隐藏溢出的文本
  text-overflow: ellipsis; // 显示省略号
}
.model-management-detail {
  background-color: #f2f2f2;
  padding: 18px;
  .el-descriptions__body {
    padding: 8px;
  }
  .el-descriptions__label:not(.is-bordered-label) {
    margin-right: 0;
  }
  .el-descriptions__title {
    font-size: 14px;
    font-weight: unset;
    color: rgba(42, 48, 58, 0.6);
  }
}
.elToolTip {
  max-width: 450px;
  max-height: 300px;
  word-wrap: break-word;
  overflow: auto;
}
.custom-drawer {
  .el-drawer__header {
    padding: 24px;
    margin-bottom: 0;
  }

  .el-drawer__title {
    font-size: var(--font-size-xl);
    color: rgba(42, 48, 58, 0.8);
    font-weight: normal;
  }

  .el-drawer__body {
    padding: 0 24px 24px 24px;
  }

  .group {
    margin-bottom: 32px;

    .left {
      width: 2px;
      height: 14px;
      color: #f08201;
    }

    .name {
      color: rgba(42, 48, 58, 0.4);
      font-size: 14px;
      margin-right: 6px;
    }
  }
}

.link-btn {
  margin-right: 7px;
}
.node-top {
  display: flex;
  justify-content: space-between;
  color: rgba(42, 48, 58, 0.4);
  .node-top-info {
    display: flex;
    flex: 1;
    .input-box {
      display: flex;
      flex: 1;
    }
    .custom-input {
      margin-left: 6px;
      margin-right: 12px;
      .el-input__wrapper {
        box-shadow: none;
        padding: 0;
      }
      .el-input__inner {
        height: 22px;
        line-height: 22px;
        white-space: nowrap; // 禁止换行
        overflow: hidden; // 隐藏溢出的文本
        text-overflow: ellipsis; // 显示省略号
      }
    }
  }
  .edit-img {
    width: 12px;
    margin-right: 12px;
    cursor: pointer;
  }
  svg {
    outline: none;
  }
}
.err-tip {
  color: #f35050;
  margin-top: 4px;
  font-size: 12px;
  padding-left: 45px;
}

.flex-space {
  display: flex;
  justify-content: space-between;
}
.mr-b-16 {
  margin-bottom: 16px;
}

.mr-b-12 {
  margin-bottom: 12px;
}
.mr-t-12 {
  margin-top: 12px;
}

.custom-collapse {
  border-color: transparent !important;
  --el-collapse-content-bg-color: #fcfcfd !important;
  .el-collapse-item__header.is-active {
    background-color: #fcfcfd !important;
  }
  .el-collapse-item__header {
    background-color: #fcfcfd !important;
    border: none;
    height: 16px;
    line-height: 16px;
    margin-bottom: 8px;
  }
  .el-collapse-item__wrap {
    border: none;
  }
  .el-collapse-item__arrow {
    font-size: 14px;
    color: rgba(42, 48, 58, 0.4);
  }
  .el-collapse-item__content {
    padding-bottom: 12px;
  }
}
.table-node {
  --el-table-border-color: transparent !important;
  --el-table-border: 0 !important;
  --el-table-header-text-color: rgba(42, 48, 58, 0.4) !important;
  --el-table-row-hover-bg-color: transparent !important;
  --el-table-tr-bg-color: transparent !important;
  --el-table-bg-color: transparent !important;
  --el-table-header-bg-color: transparent !important;
  thead {
    font-size: 12px;
  }
  .cell {
    padding: 0 6px !important;
  }
}

.custom-dialog {
  box-sizing: border-box;
  .el-dialog {
    padding: 24px 0 24px 32px;
  }
  .el-dialog__body {
    padding: 0px !important;
    padding-right: 32px !important;
  }
  .el-dialog__title {
    color: rgba(42, 48, 58, 0.8);
    font-size: var(--font-size-xl);
    font-weight: normal;
  }
  .el-dialog__header {
    padding-bottom: 24px;
  }
  .el-dialog__headerbtn {
    width: 15px;
    height: 15px;
    top: 28px;
    right: 32px;
  }
  .el-dialog__footer {
    padding-top: 0;
    padding-right: 32px;
  }
}
.custom-form {
  label {
    color: rgba(42, 48, 58, 0.6);
  }
  .el-input__inner {
    color: #2a303a !important;
  }
}

.custom-checkbox {
  display: flex !important;
  flex-wrap: nowrap !important;
  color: #2a303a !important;
  flex: 1;
  .el-radio-button {
    margin-right: 12px;
    width: 25%;
    &:last-child {
      margin-right: 0;
    }
  }
  .el-radio-button__inner {
    width: 100%;
    padding: 0;
    line-height: 32px;
    text-align: center;
    border: 1px solid rgba(42, 48, 58, 0.15);
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }
  .el-radio-button__original-radio:checked + .el-radio-button__inner {
    //background-color: transparent !important;
    color: #2a303a;
  }
}
.custom-btn {
  flex: 1;
  border: 1px dashed rgba(42, 48, 58, 0.15) !important;
  --el-button-bg-color: #fff !important;
  --el-button-text-color: #f08201 !important;
  --el-button-hover-text-color: #f08201 !important;
  --el-button-hover-link-text-color: #f08201 !important;
  --el-button-hover-bg-color: #fff6eb !important;
  --el-button-active-bg-color: none !important;
}

.fs-12 {
  font-size: 12px;
}
.mr-b-8 {
  margin-bottom: 8px;
}
.basic-input-form {
  background: rgba(42, 48, 58, 0.04);
  padding: 12px 15px 0 15px;
}
.mr-t-30 {
  margin-top: 30px;
}
.pa-b-16 {
  padding-bottom: 16px;
}

.pa-b-12 {
  padding-bottom: 12px;
}

.pa-t-8 {
  padding-top: 8px;
}

.pa-b-1 {
  padding-bottom: 1px;
}

.prompt-item {
  //.el-input {
  //  width: 50%;
  //}
  .el-form-item__label {
    color: rgba(42, 48, 58, 0.6) !important;
    font-size: 12px;
  }
  .el-icon {
    cursor: pointer;
    font-size: 12px;
    vertical-align: text-top;
  }
  .quill-edit {
    background-color: #fff;
  }
}
.flex {
  display: flex;
}

.out-variables {
  font-size: 12px;
  padding-bottom: 20px;
  padding-left: 18px;
  .out-variables-type {
    margin-left: 12px;
    color: rgba(42, 48, 58, 0.6);
  }
}

.basic-node {
  background: #ffffff;
  box-sizing: border-box;
  border: 1px solid rgba(42, 48, 58, 0.1);
  box-shadow: 0 2px 5px 0 rgba(42, 48, 58, 0.1);
  padding: 13px;
}

.repository-add-btn {
  width: 100%;
  border: 1px dashed rgba(42, 48, 58, 0.15) !important;
}
.custom-dropdown {
  width: 122px;
  .el-dropdown-menu__item {
    color: rgba(42, 48, 58, 0.8);
  }
}
.stream {
  margin-bottom: 0 !important;

  .el-form-item__label {
    color: rgba(42, 48, 58, 0.6);
    font-size: 12px;
    height: 14px;
    line-height: 14px;
  }
  .el-icon {
    font-size: 10px;
    margin-top: 2px;
  }
  .el-form-item__content {
    height: 14px;
    line-height: 14px;
  }
  .el-switch {
    height: 14px;
    line-height: 14px;
  }
}

.node-click {
  border: 1px solid #22c899;
  box-shadow: 0px 2px 5px 0px rgba(42, 48, 58, 0.1);
}
.variable-form {
  .el-form-item__label {
    display: flex !important;
    justify-content: left !important;
    color: rgba(42, 48, 58, 0.6);
  }
}
.divider-drawer {
  margin: 0 -24px;
  .el-divider {
    margin: 0 0 17px 0;
  }
  span {
    color: rgba(42, 48, 58, 0.4);
    font-size: 12px;
    margin-left: 2px;
  }
  .el-divider__text {
    padding: 0 8px;
  }
  .el-icon {
    vertical-align: text-top;
    color: rgba(42, 48, 58, 0.4);
  }
}

.node-track-drawer {
  position: unset !important;
  .el-drawer {
    right: 40% !important;
    background: #fcfcfd;
    box-shadow: inset 1px 0px 0px 0px rgba(42, 48, 58, 0.102);
  }
  .el-drawer__body {
    padding: 10px 24px 24px 24px;
  }
}

.status-btn {
  .el-button.is-circle {
    width: 14px;
    height: 14px;
  }
}

.chart-type-form {
  display: flex !important;
  justify-content: flex-start;
  .el-form-item__label {
    margin: 0 !important;
    line-height: 32px !important;
  }
}
.category-delete-btn {
  margin-bottom: 0 !important;
}
.form-title {
  .el-form-item {
    margin-bottom: 0 !important;
  }
  .el-form-item__label {
    color: rgba(42, 48, 58, 0.6);
  }
}

.operator {
  width: 100%;
  padding-left: 4px;
  padding-right: 4px;
  .el-form-item {
    margin-bottom: 0 !important;
  }
  .el-form-item__content {
    margin-left: -2px !important;
  }
}
.mr-t-8 {
  margin-right: 8px;
}

.related-toolTip {
  max-width: 450px;
  max-height: 300px;
  word-wrap: break-word;
  padding: 0 !important;
  text-align: center;
}
.mr-r-12 {
  margin-right: 12px;
}
.options-answer-answer {
  flex: 1;
  .el-form-item__content {
    display: flex;
  }
}
.node-anchor {
  margin: 20px 0 16px 0;
  .el-anchor__list {
    padding: 0 !important;
  }
}
.basic-input-cascader {
  .el-cascader-menu {
    background: #fff;
  }
}
.tree-outputs {
  padding-left: 0 !important;
  .el-tree {
    background: transparent;
    .el-tree-node__content:hover {
      background-color: transparent;
    }
    .el-tree-node__expand-icon {
      color: #f08201;
    }
  }
}
